﻿function connectdb(type, photoname) {
	console.log(type);
	console.log(photoname);
	
	$.ajax({
      url: 'http://54.221.217.191:81/uploaddata.php',
      type: 'POST',
      data: {
        type: type,
		photoname: photoname
      },
      error: function(xhr) {
		  console.log('error');
      },
      success: function(response) {
      }
    });
}
